package com.atguigu.ssyx.product;

import com.atguigu.ssyx.common.config.annotation.EnableAutoSwagger2Config;
import com.atguigu.ssyx.common.config.annotation.EnableMybatisPlusConfig;
import com.atguigu.ssyx.common.config.minio.annotation.EnableMinio;
import com.atguigu.ssyx.common.config.minio.config.MinioAutoConfiguration;
import com.atguigu.ssyx.common.service.RabbitService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

/**
 * @author 杨林
 * @create 2023-07-19 10:14 星期三
 * description:
 */
@SpringBootApplication
@EnableAutoSwagger2Config    //Swagger2相关配置
@EnableMybatisPlusConfig     //MybatisPlus分页插件相关配置
//@Import(MinioAutoConfiguration.class)      //Minio相关配置
@EnableMinio   //使用注解的方式引入Minio的相关配置
@EnableDiscoveryClient   //用于 nacos 服务发现
@Import(RabbitService.class)   //导入RabbitService进行测试
public class ProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class,args);
    }
}
